package chiss.org.draft.ihs;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 * <p>
 * Java class for anonymous complex type.
 *
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 *
 * <pre>
 * &lt;complexType>
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="indicator" type="{urn:org.chiss:draft:ihs}HealthStatistics.Indicator"/>
 *         &lt;element name="administrativeDivision" type="{urn:org.chiss:draft:ihs}code"/>
 *         &lt;element name="data" maxOccurs="unbounded">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                 &lt;/sequence>
 *                 &lt;attribute name="key" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                 &lt;attribute name="value" type="{http://www.w3.org/2001/XMLSchema}float" />
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"indicator", "administrativeDivision", "data"})
@XmlRootElement(name = "indicatorData")
public class IndicatorData {

    @XmlElement(required = true)
    protected HealthStatisticsIndicator indicator;
    @XmlElement(required = true)
    protected Code administrativeDivision;
    @XmlElement(required = true)
    protected List<IndicatorData.Data> data;

    /**
     * Gets the value of the indicator property.
     *
     * @return possible object is {@link HealthStatisticsIndicator }
     */
    public HealthStatisticsIndicator getIndicator() {
        return indicator;
    }

    /**
     * Sets the value of the indicator property.
     *
     * @param value allowed object is {@link HealthStatisticsIndicator }
     */
    public void setIndicator(HealthStatisticsIndicator value) {
        this.indicator = value;
    }

    /**
     * Gets the value of the administrativeDivision property.
     *
     * @return possible object is {@link Code }
     */
    public Code getAdministrativeDivision() {
        return administrativeDivision;
    }

    /**
     * Sets the value of the administrativeDivision property.
     *
     * @param value allowed object is {@link Code }
     */
    public void setAdministrativeDivision(Code value) {
        this.administrativeDivision = value;
    }

    /**
     * Gets the value of the data property.
     *
     * <p>
     * This accessor method returns a reference to the live list, not a
     * snapshot. Therefore any modification you make to the returned list will
     * be present inside the JAXB object. This is why there is not a
     * <CODE>set</CODE> method for the data property.
     *
     * <p>
     * For example, to add a new item, do as follows:
     *
     * <pre>
     * getData().add(newItem);
     * </pre>
     *
     *
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link IndicatorData.Data }
     */
    public List<IndicatorData.Data> getData() {
        if (data == null) {
            data = new ArrayList<IndicatorData.Data>();
        }
        return this.data;
    }


    public void setData(List<IndicatorData.Data> data) {
        this.data = data;
    }


    /**
     * <p>
     * Java class for anonymous complex type.
     *
     * <p>
     * The following schema fragment specifies the expected content contained
     * within this class.
     *
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *       &lt;/sequence>
     *       &lt;attribute name="key" type="{http://www.w3.org/2001/XMLSchema}string" />
     *       &lt;attribute name="value" type="{http://www.w3.org/2001/XMLSchema}float" />
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "")
    public static class Data {

        @XmlAttribute
        protected java.lang.String key;
        @XmlAttribute
        protected Float value;

        /**
         * Gets the value of the key property.
         *
         * @return possible object is {@link java.lang.String }
         */
        public java.lang.String getKey() {
            return key;
        }

        /**
         * Sets the value of the key property.
         *
         * @param value allowed object is {@link java.lang.String }
         */
        public void setKey(java.lang.String value) {
            this.key = value;
        }

        /**
         * Gets the value of the value property.
         *
         * @return possible object is {@link Float }
         */
        public Float getValue() {
            return value;
        }

        /**
         * Sets the value of the value property.
         *
         * @param value allowed object is {@link Float }
         */
        public void setValue(Float value) {
            this.value = value;
        }

    }

}
